// -------------------------
// Author:  fatmonsterz
// Purpose: Load images and store them with a name/key
// -------------------------
#include "ImageManager.h"

CImageManager::CImageManager() : m_Images()
{
	
}

CImageManager::~CImageManager()
{
	m_Images.clear();
}

bool CImageManager::LoadFromFile(const std::string& fileName, const std::string& name)
{
	sf::Image temp;
	temp.LoadFromFile(fileName);
	m_Images[name] = temp;
	return true;
}

sf::Image CImageManager::Get(const std::string& imgName)
{
	if(m_Images.find(imgName) != m_Images.end())
		return m_Images[imgName];
}

